package com.xyf.sys.service.impl;

import com.xyf.sys.domain.PriceScheme;
import com.xyf.sys.mapper.PriceSchemeMapper;
import com.xyf.sys.service.ISysPriceSchemeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author R-H
 * @Date 2024/2/231011
 * @Description
 */
@Service
public class SysPriceSchemeServiceImpl implements ISysPriceSchemeService {

    @Autowired
    private PriceSchemeMapper mapper;

    @Override
    public PriceScheme get(Long id) {
        if (id == null){
            return null;
        }
        return mapper.selectByPrimaryKey(id);
    }

    @Override
    public List<PriceScheme> getList(Integer type) {
        return mapper.selectList(type);
    }
}
